﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Mang24k99.Web.Dissertation.List" Title="24k99后台管理系统-专题维护" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="../Calendar/JSCalendar.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" background="../../Images/bg1.jpg">
        <tr>
            <td class="nav" style="width:40%;text-align:left">您当前的位置:
                <asp:Label ID="SpecialWeb" runat="server">FX168网站</asp:Label>专题维护
            </td>
            <td class="nav" style="width:30%;text-align:right">您的身份:<asp:Label ID="identity" runat="server">系统管理员</asp:Label></td>
        </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" width="98%" height="34px" align="center">
        <tr style="padding-top:10px">
            <td class="nav" style="width:30%;text-align:left">
                网站选择:
                <asp:DropDownList ID="selectWeb" runat="server" AutoPostBack="true" onselectedindexchanged="selectWeb_SelectedIndexChanged">
                    <asp:ListItem Value="1" Selected="True">FX168网站</asp:ListItem>
                    <asp:ListItem Value="2">24K99网站</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="nav" style="width:40%;text-align:right">
                <asp:LinkButton ID="AddSpecial" ForeColor="#0067BF" runat="server" Font-Underline="true" Text="增加专题" onclick="AddSpecial_Click" />
                &nbsp;&nbsp;&nbsp;<asp:LinkButton ID="disFileManage" runat="server" Text="专题参考文件维护" Font-Underline="true" ForeColor="#0067BF" onclick="disFileManage_Click" />
            </td>
            <td class="nav" style="width:30%;text-align:left">
                <asp:LinkButton ID="LinkButton1" runat="server" Text="设置顺序" Font-Underline="true" ForeColor="#0067BF" onclick="SettingSort_Click" />
                
                <asp:LinkButton ID="manageNews" runat="server" Font-Underline="true" ForeColor="#0067BF" onclick="manageNews_Click">专题子新闻维护</asp:LinkButton></td>
        </tr>
        <tr style="padding-top:10px">
            <td class="nav" style="width:30%;text-align:left">专题名称:
                <asp:TextBox ID="SpecialName" Width="80px" runat="server"></asp:TextBox>
            </td>
            <td class="nav" style="width:40%;text-align:left">
                时间选择:<asp:TextBox ID="startTime" Width="70px" onclick="JSCalendar(this)" runat="server"></asp:TextBox>
                到<asp:TextBox ID="endTime" Width="70px" onclick="JSCalendar(this)" runat="server"></asp:TextBox>
            </td>
            <td class="nav" style="width:30%;text-align:left"><asp:LinkButton ID="Search" 
                    runat="server" Text="查询" Font-Underline="true" ForeColor="#0067BF" onclick="Search_Click" /></td>
        </tr>
    </table><br />
    <div style="width:100%;text-align:center;" align="center">
        <asp:GridView runat="server" ID="ManageSpecial" Width="98%" 
            AutoGenerateColumns="false" onrowdatabound="ManageSpecial_RowDataBound" 
            onrowcommand="ManageSpecial_RowCommand">
            <Columns>
                <asp:BoundField HeaderText="序号" DataField="ID" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
                <asp:BoundField HeaderText="专题名称" DataField="Name" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
                <asp:BoundField HeaderText="专题序号" DataField="DisID" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
                <asp:BoundField HeaderText="创建时间" DataField="CreateTime" DataFormatString="{0:D}" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
                <asp:BoundField HeaderText="专题序言" DataField="Content" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2"/>
                <asp:TemplateField HeaderText="编辑" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2">
                    <ItemTemplate>
                        <asp:HyperLink ID="updateDis" runat="server" NavigateUrl='<%#"~/Dissertation/Edit.aspx?ID="+Eval("DisID")+"&WEBID="+ selectWeb.SelectedValue+"&PageIndex="+NewsPager.CurrentPageIndex%>'>编辑</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:ButtonField CommandName="setting" HeaderText="上线设置" Text="上线" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
                <asp:TemplateField HeaderText="设置子新闻" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2">
                    <ItemTemplate>
                        <asp:HyperLink ID="upLine" runat="server" NavigateUrl='<%#"~/Dissertation/ChildNews/List.aspx?ID="+Eval("DisNumber")+"&AddNewsDisID="+Eval("DisID")+"&webID=" + selectWeb.SelectedValue+"&PageIndex="+NewsPager.CurrentPageIndex%>'>设置</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:ButtonField CommandName="deletedis" HeaderText="删除" Text="删除" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="tb_title2" ItemStyle-CssClass="tb_txt2" />
            </Columns>
        </asp:GridView>
        <script type="text/javascript">
            addTrHover("ctl00_ContentPlaceHolder1_ManageSpecial");
        </script>
    </div>
    <br />
    <table border="0" cellpadding="0" cellspacing="0" width="98%" align="center">
        <tr>
            <td>
                <webdiyer:AspNetPager ID="NewsPager" AlwaysShow="true" runat="server" Height="22px" OnPageChanged="NewsPager_PageChanged"
                    PageSize="10" FirstPageText="首页" ShowInputBox="Always" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
</asp:Content>
